package com.by.toolkitspring.logback;

import ch.qos.logback.core.PropertyDefinerBase;
import com.by.toolkit.utils.IpUtil;

public class LocalIPLongDefiner extends PropertyDefinerBase {

    private static String ipv4Long;

    static {
        ipv4Long = String.valueOf(IpUtil.ipv4ToLong(IpUtil.getLocalIpV4()));
    }

    @Override
    public String getPropertyValue() {
        return ipv4Long;
    }

}
